# 0
print(0)
old = [5, 9, 3, 4, 5]

# 1
print(1)
list1 = [1, [1, 2, ['小甲鱼']], 3, 5, 8, 13, 18]
list1[1][2][0] = '小鱿鱼'
print(list1)
# 修改多维列表

# 2，3
print(2, 3)
old.sort()
print(old)

old.sort(reverse=True)
print(old)
# 排序和逆向排序

# 4
print(4)
n = old.copy()
print('n', n)
c = n.clear()
print(n)
# 拷贝和清空列表

# 5
print(5)
squa = [f * f for f in range(10)]
print(squa)
# 列表推倒式

# 6
print(6)

list1 = ['1.just do it', '2.一切皆有可能', '3.让编程改变世界', '4.不可能算个啥']
list2 = ['4.阿迪达斯', '2.李宁', '3.鱼c', '1.耐克']
list3 = [name + '：' + slogan[2:] for slogan in list1 for name in list2 if slogan[0] == name[0]]
print(list3)

